<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="description" content="" />
<title>js动态插入flash</title>
<style>
body{margin:0;padding:0 0 12px 0;font-size:12px;line-height:22px;font-family:"宋体","Arial Narrow";background:#fff;}
form,ul,li,p,h1,h2,h3,h4,h5,h6{margin:0;padding:0;}input,select{font-size:12px;line-height:16px;}img{border:0;}ul,li{list-style-type:none;}
</style>

<script>
function insertFlash(elm,url,w,h){
	if(!document.getElementById(elm)) return;
	var str='';
	str+='<object width="'+w+'" height="'+h+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">';
	str+='<param name="movie" value="'+url+'">';
	str+='<param name="wmode" value="transparent">';
	str+='<param name="quality" value="autohigh">';
	str+='<param name="allowScriptAccess" value="always" > ';
	str+='<embed width="'+w+'" height="'+h+'" src="'+url+'" quality="autohigh" wmode="transparent" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
	str+='</object>';
	document.getElementById(elm).innerHTML=str;
}
window.onload=function(){
	insertFlash("flashwrapDD","http://www.sh.10086.cn/v2009/flash/top_flash.swf",950,40);
}
</script>
</head>
<body>
<!--
<div class="flashwrapDD">
	<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="950" height="40">
		<param name="movie" value="http://www.sh.10086.cn/v2009/flash/top_flash.swf" />
		<param name="quality" value="high" />
		<param name="wmode" value="opaque" />
		<param name="swfversion" value="9.0.45.0" />
		<object type="application/x-shockwave-flash" data="http://www.sh.10086.cn/v2009/flash/top_flash.swf" width="950" height="40">
		<param name="quality" value="high" />
		<param name="wmode" value="opaque" />
		<param name="swfversion" value="9.0.45.0" />
		</object>
	</object>
</div>
-->
<div class="flashwrapDD" id="flashwrapDD">
</div>
</body>
</html>